package cn.itcast.com.exception;

public  class demoIfnal {
    public static void main(String[] args) {
        int i = interview02();
        System.out.println(i);
    }
    public static int interview02(){
        int i;
        try {
            System.out.println("try");
            i = 10;
            int j = i / 0;
        }catch (ArithmeticException e){
            System.out.println("catch");
            i = 20;
            return i;
        }finally {
            System.out.println("finally");
            i = 30;
        }
        return  i;
    }
}

